import request from '@/utils/request'
//  获取商品属性列表
export function getContentList(params) {
  return request({
    url: '/cloudApi/goods/goodsProperties/getPropertiesList',
    method: 'get',
    params
  })
}
// 修改商品内容
export function xgcontent(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/updateProperties',
    method: 'post',
    data
  })
}
// 新增内容接口
export function addcontent(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/saveProperties',
    method: 'post',
    data
  })
}
// 获取属性值列表
export function getcontents(params) {
  return request({
    url: '/cloudApi/goods/goodsProperties/getPropertiesValueList',
    method: 'get',
    params
  })
}
// 删除属性值
export function delbcontent(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/removePropertyValues',
    method: 'post',
    data
  })
}
// 删除属性名
export function delvalus(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/removeProperties',
    method: 'post',
    data
  })
}
